import request from '@/utils/request'
/**
 * 全局
 * @param {array} params 请求参数
 */
// 获取协议列表
export function getSysAgreementList(data) {
    return request({
        url: '/adminapi/System/getSysAgreementList',
        method: 'post',
        data: data
    })
}
// 获取系统协议版本列表
export function getSysAgreementConfigList(data) {
    return request({
        url: '/adminapi/System/getSysAgreementConfigList',
        method: 'post',
        data: data
    })
}
// 更新或者添加系统协议
export function SaveSysAgreement(data) {
    return request({
        url: '/adminapi/System/SaveSysAgreement',
        method: 'post',
        data: data
    })
}
// 获取协议详情
export function getAgreementInfo(data) {
    return request({
        url: '/adminapi/System/getAgreementInfo',
        method: 'post',
        data: data
    })
}
// 删除协议
export function delAgreement(data) {
    return request({
        url: '/adminapi/System/delAgreement',
        method: 'post',
        data: data
    })
}
// 更新状态
export function SaveAgreementStatus(data) {
    return request({
        url: '/adminapi/System/SaveAgreementStatus',
        method: 'post',
        data: data
    })
}